<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改用户</title>
<link href="/res/css/style.css" rel="stylesheet" type="text/css" />
<link href="/res/css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/res/js/jquery.js"></script>
<script type="text/javascript" src="/res/js/select-ui.min.js"></script>
<script type="text/javascript" src="/res/js/lib/formvalid/FormValid.js"></script>
<link href="/res/js/lib/layer/skin/layer.css" rel="stylesheet" type="text/css" />
<link href="/res/js/lib/layer/skin/layer.ext.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/res/js/lib/layer/layer.js"></script>
<script type="text/javascript" src="/res/js/common/msgTools.js"></script>
<script type="text/javascript" src="/res/js/pages/user/userEdit.js"></script>
<style>
 .divInfo{font-size: 13px;white-space: nowrap;border:1px solid #ccc;background:#efefef;padding:6px;margin-bottom:20px;}
 .divInfo span{margin-right:20px;display: block;float: left;}
 .formbody{padding: 0px 16px;} 
 .fl{float: left;}
</style>
<script type="text/javascript">
	$(document).ready(function(e) {
		$("select").uedSelect({});
	});
</script>
</head>

<body style="overflow-x:hidden;width:500px;min-width:500px;">
	<div class="formbody">

		<form action="/account/save" method="post" onsubmit="return checkData(this)">
			<div id="tab1" class="tabson">
			    <div class="divInfo">
		            <span>帐户：${acc.name}</span>
		            <span>¥现金：${acc.money}</span>
		            <span>¥商币：${acc.cloudMoney}</span>
		            <div style="clear:both;"></div>
			    </div>				
				<input type="hidden" name="userid" value="${acc.userid }"/>
				<input type="hidden" name="accountId" value="${acc.accountId }"/>
				<ul class="forminfo">
                    <li><b>正数增加，负数减少</b></li>
					<li><label>资金变更:</label> <input name="money" valid="isNumber" max="8"  type="text" class="dfinput" style="width:150px;" value="${dto.money}"></input>
					    <span id="errMsg_pid" class="errMsg">数字精度：7位整数，2位小数</span>
					</li>
					<li><label>商币变更:<b></b></label> <input name="cloudMoney" valid="isNumber"  max="8" type="text" class="dfinput" style="width:150px;" value="${dto.cloudMoney}"/>
					    <span id="errMsg_mobile" class="errMsg">数字精度：7位整数，2位小数</span>					
					</li>
					<c:if test="${user.isMerchant==1}">
					<li>
					     <label><b style="background-color:#332C2C;padding:2px;color:#2CB9FF;">商家</b>加币类型:<b></b></label>
					     <tr>
							<td class="item_input">
				
								<label><input type="radio" name="cloudMoneyType" value="collection" class="textbox require">收款</label>
								<label><input type="radio" name="cloudMoneyType" value="consumption" class="textbox require">消费</label>
								<label><input type="radio" name="cloudMoneyType" value="doNot" class="textbox require"><b>不执行规则</b></label>
								<!-- <span class="tip_span"> [加商币行为类型]</span> -->
								<div style="clear:both;display:block;">*不执行规则:就不会给他推荐人和合伙人返
								<br/><b>目前已实现的是最新规则,无限50%</b>
								<br/><b>基数是消费总额: 增加商币乘100除15</b></div>
							</td>
						</tr>
					   					     
					</li>
					</c:if>
					<c:if test="${user.isMerchant!=1}">
					<li>
					     <label><b style="background-color:#332C2C;padding:2px;">会员</b>加币类型:<b></b></label>
					     <tr>
							<td class="item_input">
								<label><input type="radio" name="cloudMoneyType" value="consumption" class="textbox require">消费</label>
								<label><input type="radio" name="cloudMoneyType" value="doNot" class="textbox require"><b>不执行规则</b></label>
								<!-- <span class="tip_span"> [加商币行为类型]</span> -->
								<div style="clear:both;display:block;">*不执行规则:就不会给他推荐人和合伙人返
								<br/><b>目前已实现的是最新规则,无限50%</b>
								<c:if test='${user.level!="gold"}'>
								<br/><span style="color:blue">普通会员：基数是=增加商币 【 没有乘100除15】跟商家不一样</span>
								</c:if>
								<c:if test='${user.level=="gold"}'>
								<br/><span style="color:blue">{{金钻}}、基数是消费总额: 增加商币乘100除15跟商家一样</span>
								</c:if>
								</div>
							</td>
						</tr>
					   					     
					</li>
					</c:if>
					<li><label>备    注:<b></b></label> 
					    <textarea name="memo"valid="required"  class="dfinput" style="width:300px;height:80px" >${dto.memo}</textarea><br/>
					    <label>&nbsp;<b></b></label><span id="errMsg_memo" class="errMsg">请输入变更理由(50字以内)</span>						    				
					</li>
					<li><label>&nbsp;</label> <input type="submit" class="btn" value="保 存" /></li>
				</ul>				
				
			</div>
		</form>
	</div>
	${actionMsg}
</body>

</html>


